package com.itheima.stock.pojo.vo;

import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Date;


/**
 * 个股最新行情数据
 */
@ApiModel(description = "个股最新行情数据")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class StockRt {
    /**
     * 最新交易量
     */
    @ApiModelProperty(value = "最新交易量", position = 1)
    private BigInteger tradeAmt;

    /**
     * 前收盘价格
     */
    @ApiModelProperty(value = "前收盘价格", position = 2)
    private BigDecimal preClosePrice;

    /**
     * 最低价
     */
    @ApiModelProperty(value = "最低价", position = 3)
    private BigDecimal lowPrice;

    /**
     * 最高价
     */
    @ApiModelProperty(value = "最高价", position = 4)
    private BigDecimal highPrice;

    /**
     * 开盘价
     */
    @ApiModelProperty(value = "开盘价", position = 5)
    private BigDecimal openPrice;

    /**
     * 交易金额
     */
    @ApiModelProperty(value = "交易金额", position = 6)
    private BigDecimal tradeVol;

    /**
     * 当前价格
     */
    @ApiModelProperty(value = "当前价格", position = 7)
    private BigDecimal tradePrice;

    /**
     * 当前时间
     */
    @ApiModelProperty(value = "当前时间", position = 8)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date curDate;

}
